package com.wiz.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * 用户实体表
 */
@SuppressWarnings("serial")
public class User implements java.io.Serializable {
	private int id;
	//登录名
	private String name;
	
	//密码
	private String password;
	//昵称
	private String nickname;
	//电话
	private String phone;
	//邮箱
	private String mail;
	//上级代理用户名编号
	private String parentNumber;
	//用户状态
	private String mark;
	//备注
	private String status;
	
	//角色名称
	private String roleName;

	// 一个集合roles，初始容量为0
	private Set<Roles> roles = new HashSet<Roles>(0);
	
	
	public User() {
		super();
	}
	public User(int id, String name, String password,
			String nickname, String phone, String mail,
			String parentNumber, String mark, String status) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.nickname = nickname;
		this.phone = phone;
		this.mail = mail;
		this.parentNumber = parentNumber;
		this.mark = mark;
		this.status = status;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getParentNumber() {
		return parentNumber;
	}

	public void setParentNumber(String parentNumber) {
		this.parentNumber = parentNumber;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Set<Roles> getRoles() {
		return roles;
	}

	public void setRoles(Set<Roles> roles) {
		this.roles = roles;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	
}
